import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react-swc'
import qiankun from 'vite-plugin-qiankun';

export default defineConfig({
  base: process.env.NODE_ENV === 'development' ? "/app1/app2" : "/app2",
  plugins: [react(), qiankun('app2', { useDevMode: true })],
  server: {
    port: 5174,
    hmr: false,
    cors: true
  }
})
